








<%-- 
    Document   : index
    Created on : Nov 1, 2011, 8:14:18 PM
    Author     : MrKoi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>East2West Tours and Travels</title>
         <link rel="stylesheet" type="text/css" href="css/syteindex.css" />
         <script type="text/javascript" language="javascript" src="js/jquery.js"></script>
         <script type="text/javascript">
            $(document).ready(function()
            {
                    //slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
                $("#firstpane p.menu_head").click(function()
                {
                    $(this).css({backgroundImage:"url()"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
                    $(this).siblings().css({backgroundImage:"url()"});
                    });
                    //slides the element with class "menu_body" when mouse is over the paragraph
                $("#secondpane p.menu_head").mouseover(function()
                {
                     $(this).css({backgroundImage:"url(images/down.png)"}).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
                     $(this).siblings().css({backgroundImage:"url(images/left.png)"});
                    });
            });			
            </script>
    </head>
    <body>
     <div id="nava">           
           <jsp:include page="Slideshow.jsp"/>
             <div>
                 <div id="wrapper">
                        <ul id="topnav">
                           <li><a href="index.jsp">Home</a></li>
                           <li><a href="index.jsp?page=listTour">Package Tours</a></li>
                           <li><a href="index.jsp?page=ListCars">Car Rentals</a>
                           </li>
                           <li><a href="index.jsp?page=ListHotels">Hotels</a>
                           </li>
                           <li><a href="index.jsp?page=ListFlights">Flights</a></li>
                           <li><a href="index.jsp?page=AboutUs">About Us</a>
                            </li>
                            <li><a href="index.jsp?page=ContactUs">Contact Us</a></li>                            
                        </ul>  
                </div><!--end #wrapper-->
            </div><!menu>
            <div id="left">
                 <div id="login">    
                        <div id="imagmenu"><h2>User</h2></div>  
                        <%                        
                            if(session.getAttribute("User")==null)
                                {//<jsp:include page="include/Login.jsp"/>
                        %>
                           <ul id="navmenu">
                              <li><a href="index.jsp?page=Login">Login</a></li>
                              <li><a href="index.jsp?page=Registry">Registry</a></li>
                              <li><a href="index.jsp?page=ForgetPass">Forget Password?</a></li>
                            </ul>
                        <%
                        }else
                            {
                                String getsession=session.getAttribute("User").toString();
                        %>                               
                              <ul id="navmenu">
                              <li><a >Welcome: <%=getsession%></a></li>
                              <li><a href="index.jsp?page=Profile">Profile</a></li>
                              <li><a href="index.jsp?page=MyCarBook">Bills rental cars</a></li>
                              <li><a href="index.jsp?page=MyCancelCar">Bills cancel cars</a></li>
                              <li><a href="index.jsp?page=BillBookTours">Bills book tours</a></li>
                              <li><a href="index.jsp?page=BillTourCanceled">Bills cancel tours</a></li>
                            
                                <li><a href="ControllerLogout">Logout</a></li>
                            </ul>
                       <%
                            }
                        %>     
                        
                    </div><!ket hut login>
                    <div id="support">
                        <div id="imagmenu"><h2>Support Online</h2></div>  
                        <a href="ymsgr:sendIM?kid_v90">
                            <div style="text-align: center">
                                <img src="http://opi.yahoo.com/online?u=kid_v90&amp;m=g&amp;t=14" border="0" alt=" " />
                            </div>   
                        </a>
                    </div>
                    <div id="sildshow">
                      <div id="imagmenu"><h2>Top 10 New Car</h2></div> 
                      <jsp:include page="NewProduct.jsp"/>
                   </div>
                    <div id="search">
                        <div id="imagmenu"><h2>Search</h2></div> 
                        <div style="float:left" > <!--This is the first division of left-->
                             <div id="firstpane" class="menu_list"> <!--Code for menu starts here-->
                                <p class="menu_head">Package Tours</p>
                                <div class="menu_body">
                                 <jsp:include page="SearchTour.jsp"/>
                                </div>
                                <p class="menu_head">Cars</p>
                                <div class="menu_body">
                                 <jsp:include page="SearchCar.jsp"/>
                                </div>
                                <p class="menu_head">Hotels</p>
                                <div class="menu_body">
                                   <jsp:include page="SearchHotel.jsp"/>			
                                </div>
                                <p class="menu_head">Flights</p>
                                <div class="menu_body">		
                                    <jsp:include page="SearchFlight.jsp"/>
                                 </div>
                          </div>  <!--Code for menu ends here-->
                        </div>
                     </div>
                   
            </div><!left>
            <div id="conten">
                 <%
                    if(request.getParameter("page")!= null)
                     {
                                String U=request.getParameter("page");
                                String str=U+".jsp";
                     %>
                        <jsp:include page="<%=str%>"/>                  
                     <%                              
                     }             
                     else
                     {
                      %>                   
                      <jsp:include page="listTour.jsp"/>  
                       <%
                       }
                    %>
                
            </div><!left>
            <div id="foot">         
                <p>@ Copy right<br>
                    Mekong Delta Aptech | Sem IV | eProject East2West Tours and Travels<br>
                    Group 5 | them Tên.... | them Tên.... | them Tên....
                <p>
            </div><!foot>
        </div><!vien chung>
    </body>
</html>
